<div class="member">
    <div class="login" *ngIf="!user else logined">
        <p>登录网易去音乐，可以享受无限收藏的乐趣，并且无限同步到手机</p>
        <button nz-button class="btn" (click)="openModal.emit()">用户登录</button>
    </div>
</div>

<ng-template #logined>
  <div class="n-myinfo">
    <div class="f-cb clearfix">
      <div class="head">
        <img [src]="user.profile.avatarUrl" [alt]="user.profile.nickname" />
      </div>
      <div class="info">
        <h4><a class="nm ellipsis">{{user.profile.nickname}}</a></h4>
        <p class="lv">
          <span class="u-lv u-icn2">
            {{user.level}}<i class="lvright u-icn2"></i>
          </span>
        </p>
        <!-- [nzTitle]="tipTitle" nzPlacement="bottom" [nzVisible]="showTip" -->
        <div class="btnwrap f-pr" nz-tooltip [nzTooltipTitle]="tipTitle" nzTooltipPlacement="bottom" [nzTooltipVisible]="showTip">
          <button nz-button nzType="primary" nzBlock (click)="onSignin()">签到</button>
        </div>
      </div>
    </div>

    <ul class="dny clearfix">
      <li class="fst">
        <strong class="ellipsis">{{user.profile.eventCount}}</strong>
        <span>动态</span>
      </li>
      <li>
        <strong class="ellipsis">{{user.profile.follows}}</strong>
        <span>关注</span>
      </li>
      <li class="lst">
        <strong class="ellipsis">{{user.profile.followeds}}</strong>
        <span>粉丝</span>
      </li>
    </ul>
  </div>
</ng-template>


